home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950726-19950929
/
000129_news@columbia.edu_Thu Aug 10 16:50:14 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA03190
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 10 Aug 1995 12:50:20 -0400
Received: by apakabar.cc.columbia.edu id AA14711
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 10 Aug 1995 12:50:19 -0400
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: non-interactive screen capture
Date: 10 Aug 1995 16:50:14 GMT
Organization: Columbia University
Lines: 32
Message-Id: <40ddc6$ebf@apakabar.cc.columbia.edu>
References: <DD25vA.tr@cs.dal.ca>
Nntp-Posting-Host: watsun.cc.columbia.edu
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <DD25vA.tr@cs.dal.ca>,
Luke Blaikie <blaikie@phys.ocean.dal.ca> wrote:
>My problem is I want to automate a login to a remote machine (that
>doesn't have kermit). After connecting to this machine I type 'LIST'
>and it prints out data to the screen for about a minute. Then I want
>to simply hang up.
>
>Is it possible to capture (into a file) the information using a shell
>script (UNIX machine) using kermit?? If not, any suggestions for a
>simple solution??
>
Here is a simple solution that might work:
1. Write the script that logs in and gets to the system prompt.
2. OUTPUT LIST blah ; where blah is the filename
3. LOG SESSION blah.log ; Record in file blah.log
4. OUTPUT \13 ; Start the LIST command
4. INPUT 200 xxx ; where xxx is the system prompt
5. CLOSE SESSION
This should work if the listing doesn't take more than 200 seconds
(if it does, use a bigger number) and if the system prompt does not
occur in the file text (if it does, the active imagination can conjure
up additional tricks to have the host display a unique string after
the file is listed).
- Frank